Serve.Run(RunOptions.Default.ConfigureConfiguration((hostEnvironment, configuration) =>
{
    configuration.SetBasePath(Directory.GetCurrentDirectory());
    configuration.AddJsonFile("./appsettings.json", optional: true, reloadOnChange: true);
}));